package com.hyt.it.ogt.data.service.pj;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyt.it.ogt.data.model.entity.pj.Piece;
import com.hyt.it.ogt.data.model.entity.pj.Subject;
import com.hyt.it.ogt.data.model.vo.pj.PaperDataVO;

import java.util.List;

/**
 * <p>
 * 评卷块表 服务类
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface IPjDataPieceService extends IService<Piece> {
    
    /**
     * 初始化piece信息
     * @param projectId
     * @param subjects
     * @param papers
     */
    void initPiece(String projectId, List<Subject> subjects);

    List<Piece> selectBySubject(String subjectId);
    
    List<Piece> selectByProjectIdSubjectId(String projectId, String subjectId);
    
    Piece selectPaperPiece(String projectId, String subjectId, String id);
    
    void updateFinishStatus(String projectId, String subjectId, String pieceCode, Boolean status);


}
